<?php

/**
 * Index controller class
 *
 */

class PoiskController extends Client_Controller
{
	public function init()
    {
        parent::init();
        $this->setActiveCat(582);
        $this->table_prod = new Client_Table_Products($this->_lang);
    }

    public function indexAction()
    {
    	$s = $this->_getParam('s');
    	$prod_list = $this->table_prod->GetDataList(1, array('s' => $s));
    	$this->startContent();
	        $this->view->xmlWriter->startElement("Main");
			$this->view->xmlWriter->writeAttribute('s', $s);
			$this->view->assign('list', $prod_list);
		    $this->view->xmlWriter->endElement();
	    $this->view->xmlWriter->endElement();
    }
}
